dojo.declare("MobileHomePg", wm.Page, {
start: function() {
},
"preferredDevice": "phone",
serviceVariable1Result: function(inSender, inDeprecated) {
var result = inSender.getItem(0);
console.error(result);
console.error(result.data);
console.error(result.authenticated);
console.error('Data::'+inSender.getData());
alert(result.data.isAuthenticated);
if (result.data.authenticated === true || result.data.authenticated === 'true') {
// this.notifyLogin.update();
// var mainPage = wm.Page.getPage("MobileMainPg");
// mainPage.vUsername = result.data.name;
alert(result.data.name);
} else {
//  this.notifyLoginError.update();
// this.loginErrorMsg.setCaption("Invalid username or password.");
// this.usernameInput.focus();
alert("error");
}
},
_end: 0
});

MobileHomePg.widgets = {
serviceVariable1: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"retrieveUserDetails","service":"RegistrationService"}, {"onResult":"serviceVariable1Result"}, {
input: ["wm.ServiceInput", {"type":"retrieveUserDetailsInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"text1.dataValue","targetProperty":"email"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"text2.dataValue","targetProperty":"password"}, {}]
}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"height":"30px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
wmTitle: ["wm.Label", {"align":"center","caption":"Welcome to Service Live","deviceType":null,"enableTouchHeight":true,"height":"100%","padding":"4","styles":{"fontWeight":"bold","fontStyle":"normal","backgroundGradient":""},"width":"100%"}, {}]
}],
panel3: ["wm.Panel", {"desktopHeight":"35px","enableTouchHeight":true,"height":"40px","horizontalAlign":"left","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
toggleButton1: ["wm.ToggleButton", {"captionDown":"Services","captionUp":"Services","height":"35px","margin":"4","mobileHeight":"35px","width":"100%"}, {}]
}],
panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}]
}]
};

MobileHomePg.prototype._cssText = '';
MobileHomePg.prototype._htmlText = '';